package com.shop.cloud.service.hongfu.impl;

import java.util.List;
import java.util.Map;

import com.shop.cloud.domain.hongfu.BalanceHistory;
import com.shop.cloud.domain.hongfu.WithdrawHistory;
import com.shop.cloud.service.hongfu.IBalanceHistoryService;
import com.shop.cloud.util.Page;
import com.shop.cloud.dao.hongfu.BalanceHistoryDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.cloud.common.mybatis.BaseService;
import com.shop.cloud.common.mybatis.MybatisDao;

/**
 * 
 */
@Service("balanceHistoryService")
public class BalanceHistoryService extends BaseService<BalanceHistory> implements IBalanceHistoryService{
    
    @Autowired
	private BalanceHistoryDao balanceHistoryDao;

	@Override
	public MybatisDao<BalanceHistory> getEntityDao() {
		return balanceHistoryDao;
	}
	
	public long getCount(Map<String, Object> map){
		
		return balanceHistoryDao.getBalanceHistoryCount(map);
	}
	
	public List<BalanceHistory> getAllList(Map<String, Object> map){
		
		return balanceHistoryDao.getBalanceHistoryList(map);
	}
	
}